using System;
using System.Collections.Generic;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

[SugarTable("BillRecord", "发票记录")]
[SysTable]
public class BillRecord : EntityTenant
{
	public long OwnerId { get; set; }

	/// <summary>
	/// 抬头
	/// </summary>
	public string Title { get; set; }

	/// <summary>
	/// 税号
	/// </summary>
	public string? DutyParagraph { get; set; }

	/// <summary>
	/// 单位地址
	/// </summary>
	public string? WorkerAddress { get; set; }

	/// <summary>
	/// 电话号码
	/// </summary>
	public string? Tel { get; set; }

	/// <summary>
	/// 开户银行
	/// </summary>
	public string? BankOfDeposit { get; set; }

	/// <summary>
	/// 银行账户
	/// </summary>
	public string? BankAccount { get; set; }

	/// <summary>
	/// 企业或个人
	/// </summary>
	public int EnterpriseOrIndividual { get; set; }

	/// <summary>
	/// 开票总金额
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal Amount { get; set; }

	/// <summary>
	/// 0:申请中（待审核），1:通过，2：拒绝，3已取消
	/// </summary>
	public int Status { get; set; }

	/// <summary>
	/// 审核备注
	/// </summary>
	public string? AuditRemark { get; set; }

	/// <summary>
	/// 审核人员id
	/// </summary>
	public long? AuditUserId { get; set; }

	/// <summary>
	/// 审核人员姓名
	/// </summary>
	public string? AuditUserName { get; set; }

	/// <summary>
	/// pdf url
	/// </summary>
	public string? PdfUrl { get; set; }

	/// <summary>
	/// 订单id
	/// </summary>
	[SugarColumn(IsJson = true, ColumnDataType = "jsonb", IsNullable = true)]
	public List<long> RecordIds { get; set; }

	/// <summary>
	/// 开票日期
	/// </summary>
	public DateTime? InvoicingDate { get; set; }
}
